package com.alipay.config;

/* *
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *修改日期：2017-04-05
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
 */

public class AlipayConfig {

//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    public static String app_id ="2016082600311745";

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQChtgF7iDCG0tNJGmvhSY+2TvPsxw0ExK5ERDtqAqrs4YCb8pIvYfloAF4uyv9jVZDFcgyvDzDlEFafRi8dmRGH4NO1MAxFzGu7X2ZYSYNsHrxRBxBrLkRO9hydZ1OS6eOuTXHxQuun3dSFGaTv5cG9tpU9CSAgO6ELY07jzYBN7aGfYmpyQr7uAgir1wS0fO79NvLcHdmLQEL2mhBxasLIsoB4JsT07ZD10aKbXjiHdGxmaV0J68twvzruNoAfjeGjSCS5BWTrGMDseuOaYqqe4xNraGZp1xwfLCAN0+THqmGVlSPZKpHlGZ8rekBBdV5PvOsocGdrecfU3/sSxIVJAgMBAAECggEBAJBotYg4hYVQ7ifBNYeZJoJanU/cLc8NSMZj3F7+BN/HPQ+Gnm874fqzIWhOFaUCe2cnQxZtzW8xmPlhNqAK2nHqH4UVZFBMjgRk3EOJWpiKFgeR9GKSjaOp+sHBzQtMXOuB83fNGB7vZWJ7FSS6m7osO7em146RUW6W/5NFKAft+1lKeFCQJ8lEpBNbyTXCge3g0zI+Co+8n1JYyEJGU5PJ5CyZ+VkIy8OF558zsbI93075nQoj/wLm8jPCkPoP6QWbTaq+Hev7KJom3OwRQ1+smUCvsgp6Mc2xHdBmQKCzeclmRSCRMOp3SB4qADjWqKi4zs5gKPYgK/9yFEPCXUUCgYEAzH/zP5ay4+3a9sBIr88cQYkB7/WuKmNLoDiz6lV4LgUkqQAANGEoRV48nLv3Rg4HjxJWlS9iKkKluqkiY8tgVdkW4WwfFlSMJlmAKWaOToljoY4Je6yd4OQt15hTCh/xwVdK6I6RP7cVTAa/8Z7COOXoEFv6RamfpANij5+o368CgYEAym94Qju1isNHhmnvmkJ5lwjTcKudiREHlaDJzAovjt8PtRp9WV21lqJtXaY1RjJfZfvCNTbOi2Eny6SYNm5pFTmSPNkmiOnJF5DF1HBwB/kH2aHyj3veHHeaQGvcwGWk4y6m5q13sKe7hJ9ZYugCbkJ4arNFRUUlwZNSzrtGcIcCgYEAx6XK5zPK5jda5DeJPwql/V0y5QAnzv4t4Pg6vfY/ZD5lMhDsIjcQR9jet+3SVTRxML6ohPFDlxqGDhv9lQwCuw08B0u1demJAg+yzbhwCkCbYif3HiTB5cMe9jKiL2pMbYM5gJ1fNKMbSaP1VIC4ATCDRSVmywf08PzVBn7LMcUCgYAtB5KmmQWO8lVMru/fTn4hfJMb8vC99o3LWNLKklF15GRoEpZjdJbaBRNyy2/6R2Y1F0Vh9OkI0/m4MMqzAOhbEk1XP650shxLI6b91Gz3OQvn+0ArbpA/oNMtFVErcvC0oEH7+gYvw3/QxmlpuNYhlKOYiHwWJoV5g73dwoaurQKBgQCii/aTzMyV4IS+S9YocJITfJzf7+7aCJAOtkRVRHMyUeh5d+nrOfzu/dRjuUeSIwACxPoWHLLb6S1xfpUxHzh5T9QbXINQsyd7NttDwbiNoUDWON4hxhYhlKWJJ1JS3TSQRhP2PkRGT43Mc7AhGk20lk2lelxtjiDdzVwvi5Q6eA==";

    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuDVEchLoSP5oXBzAR9wQVlCe8YYIO3+xmQxDehCmIXFF2S3s6KUvCjMCimKd2lsA1IZRo12i4whkb1zpnb1IWo4U886f29uIyuw3aREadqNToyGaw/3yNJ480lwqDB/e+Fk4yNHP70Uh34jG3ocw2mcz0MAEvb7qgGZpqw9sMLyKLBTcFg0reRbg0y6PrPdF1rlZ7B874zLUxLjYXHeJJUQ9cW6mYDN4k4PwX/lnk9TEVUNM6C3mjzC6pou9Dv4vmatbn6ZoMzpOobSKoGESDYDlfZvlOI3YIEXTRK7Zvlzzuyz8dczXUftrBEI1vDoMfeAgQHGAQX+P8TgLdMf+7QIDAQAB\n";

    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://localhost:8080/jsp/notify_url.jsp";

//    public static String notify_url(HttpServletRequest request, HttpServletResponse response){
//        String path = request.getContextPath();
//        String url = "http://localhost:8080"+ path +"/jsp/notify_url.jsp";
//        return url;
//    }

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "http://localhost:8080/jsp/return_url.jsp";
//    public static String return_url(HttpServletRequest request, HttpServletResponse response){
//        String path = request.getContextPath();
//        String url = "http://localhost:8080"+ path +"/jsp/return_url.jsp";
//        return url;
//    }

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "utf-8";

    // 支付宝网关
    public static String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";

}

